# Contributor: Rosie K Languet <rkl@rosiesworkshop.net>
# Maintainer: Rosie K Languet <rkl@rosiesworkshop.net>
pkgname=py3-qt6
pkgver=6.3.1
pkgrel=0
pkgdesc="A set of Python 3 bindings for the Qt toolkit"
url="https://www.riverbankcomputing.com/software/pyqt/"
arch="all !riscv64" # no bindings to be built
license="GPL-3.0-only"
depends="
	py3-pyqt6-sip
	python3
	"
makedepends="
	libx11-dev
	py3-dbus-dev
	py3-opengl
	py3-pyqt-builder
	py3-sip
	python3-dev
	qt6-qtbase-dev
	qt6-qtconnectivity-dev
	qt6-qtdeclarative-dev
	qt6-qtmultimedia-dev
	qt6-qtserialport-dev
	qt6-qtsvg-dev
	qt6-qttools-dev
	qt6-qtwebchannel-dev
	qt6-qtwebsockets-dev
	"

source="https://pypi.python.org/packages/source/P/PyQt6/PyQt6-$pkgver.tar.gz"
builddir="$srcdir/PyQt6-$pkgver"

build() {
	sip-build \
		--confirm-license \
		--qmake /usr/lib/qt6/bin/qmake \
		--api-dir /usr/share/qt6/qsci/api/python \
		--no-make
	make -C build
}

check() {
	make -C build check
}

package() {
	make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" -C build install -j1
}

sha512sums="
94319cd0983eb3f9bb0f1acbc620a1631a37f82e2fcffb9d0e58437fb1c120640be1e2a0a09e98e03f6c7082a2d94e9eabceefa6b07bae354f77bda02ba92d58  PyQt6-6.3.1.tar.gz
"
